#ifndef STRUCT_H
#define STRUCT_H

typedef struct Student
{
	char name[20];
	char sex;
	char id[20];
	char passwd[20];
	float chinese;
	float english;
	float math;
	int cnt;
	int exist;
	
}Student;

typedef struct Teacher
{
	char name[20];
	char sex;
	char id[20];
	char passwd[20];
	int cnt;		//密码错误次数
	int  exist;		//是否离职
}Teacher;

typedef struct Admin
{
	char id[20];
	char passwd[20];

}Admin;

extern Student* stu;
extern Teacher* tea;
extern Admin* adm;

#endif//STRUCT_H
